package com.ybxx.core.service;

import com.ybxx.core.command.QueryFilter;
import com.ybxx.core.web.paging.PagingBean;
import java.io.Serializable;
import java.util.List;
/**
 * 功能：Service业务行为声明类
 * 公司：XA.Co.LTD
 * 制作人：Tom.Y
 * 日期：2011-05*/
public abstract interface GenericService<T, PK extends Serializable>
{
  public abstract T save(T paramT);

  public abstract T merge(T paramT);

  public abstract void evict(T paramT);

  public abstract T get(PK paramPK);

  public abstract List<T> getAll();

  public abstract List<T> getAll(PagingBean paramPagingBean);

  public abstract List<T> getAll(QueryFilter paramQueryFilter);

  public abstract void remove(PK paramPK);

  public abstract void remove(T paramT);

  public abstract void flush();
}
